#ifndef WIDGET_H
#define WIDGET_H

#include <QShortcut>
#include <QMessageBox>
#include <QListView>
#include <QDebug>
#include <QFileDialog>
#include <QFile>
#include <QWidget>
#include <QWheelEvent>

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    QFile file;
    Widget(QWidget *parent = nullptr);
    ~Widget();

    void myZoomIn();
    void myZoomOut();

//    bool eventFilter(QObject *obj, QEvent *ev) override;

private slots:
    void on_btnopen_clicked();
    void on_btnsave_clicked();
    void on_btnclose_clicked();
    void onCurrentIndexChanged(int index);
    void oncursorPositionChanged();

private:
    Ui::Widget *ui;
};
#endif // WIDGET_H
